/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gui;

import java.util.List;
import javax.swing.AbstractListModel;

/**
 *
 * @author Francisco Gindre
 */
public class ListModel extends AbstractListModel {
    private List<String> list;
    public ListModel(List<String> list){
        this.list= list;
    }
    @Override
    public int getSize() {
        return list.size();
    }

    @Override
    public Object getElementAt(int index) {
        return list.get(index);
    }

}
